type Result = {
  success: boolean;
  data: Array<any>;
};

export const getAsyncRoutes = () => {
  return new Promise<Result>(resolve => {
    resolve({
      success: true,
      data: []
    });
    // http
    //   .request<any>("get", baseUrlApi("/login/tokenByDetail"))
    //   .then(res => {
    //     let newData = {
    //       success: true,
    //       data: dealUserRouter(res.data?.menuList || [])
    //     };
    //     resolve(newData);
    //   })
    //   .catch(e => {
    //     reject(e);
    //   });
  });
  // return http.request<Result>("get", "/get-async-routes");
};
